#ifndef BLOCK_H
#define BLOCK_H

#include <iostream>
#include "model.h"

class Block : public Drawable
{
public:
	Block(int, int);
	virtual void draw();
	virtual void draw(int, int, int);
	virtual void drawFace(int, int, int, int);
	virtual int getFaceTexture(int);
	
	bool doesRenderCubic();
	
	static Block* terre, *herbe, *mur;
	static void init();
	
protected:
	static Block* blocklist[256];
	Model* model;
	int textFile;
	int textureIdInsideFile;
	int blockId;
	bool renderCubic;
	
};

#endif
